package com.evony.common.server.events 
{
    import com.evony.common.*;
    
    public class CbUpdate extends com.evony.common.BaseBean
    {
        public function CbUpdate(arg1:String, arg2:Object, arg3:Boolean=false, arg4:Boolean=false)
        {
            var loc1:*=0;
            super(arg1, arg3, arg4);
            if (arg2.text != null) 
            {
                this.text = arg2.text;
            }
            if (arg2.tp != null) 
            {
                this.tp = arg2.tp;
            }
            return;
        }

        public function copyTo(arg1:com.evony.common.server.events.CbUpdate):void
        {
            arg1.text = this.text;
            arg1.tp = this.tp;
            return;
        }

        public function toObject():Object
        {
            var loc1:*=new Object();
            loc1.text = this.text;
            loc1.tp = this.tp;
            return loc1;
        }

        public override function toDebugString(arg1:String=""):String
        {
            var loc1:*=0;
            var loc2:*="---- CbUpdate ----\n";
            loc2 = loc2 + (arg1 + "text = " + this.text + "\n");
            loc2 = loc2 + (arg1 + "tp = " + this.tp + "\n");
            return loc2;
        }

        public var tp:int;

        public var text:String;
    }
}
